package com.bss.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.andy.basics.Dao;
import com.bss.model.Place;
import com.bss.model.State;

@Repository
public class PlaceDao extends Dao<Place> {
	public List<Place> findForState(State state) {
		if (state == null) {
			return null;
		}
		return this.find("state.name='" + state.getName() + "'");
	}
}
